﻿<%@ Control Language="C#" ClassName="postview" Inherits="Wedn.TemplateEngine.UC.Template" %>

<!--正文开始-->
<div class="main">
    <%--<%Wedn.Core.Entity.Post PostDetail = PostDetail; %>--%>
    <%if (PostDetail != null)
      { %>
    <div id="mapsite">当前位置： <a title="返回首页" href="<%=SiteInfo("SiteUrl") %>">首页</a> &gt; <%=PostDetail.CategoryLink %> &gt; 正文</div>
    <div class="left">
        <h2><%=PostDetail.Title %></h2>
        <div class="post_date"><span class="date_m"><%=PostDetail.PubDate.ToString("MMM") %></span><span class="date_d"><%=PostDetail.PubDate.ToString("dd") %></span><span class="date_y"><%=PostDetail.PubDate.ToString("yyyy") %></span></div>
        <div class="article">
            <div class="article_info">作者：<%=PostDetail.Author.NickName %> &nbsp; 发布：2013-01-28 12:08 &nbsp; 分类：<%=PostDetail.CategoryLink %> &nbsp;  &nbsp; <a href="http://localhost/MyPHP/wordpress/?p=1#comments" title="《世界，你好！》上的评论">1条评论</a> &nbsp; </div>
            <div class="clear"></div>
            <div class="context">
                <p><%=PostDetail.Content %></p>
                <p>本文固定链接: <a href="<%=PostDetail.Url %>" rel="bookmark" title="<%=PostDetail.Title %>"><%=PostDetail.Url %></a> | <%=Dict["SiteName"]%></p>
            </div>
            <div class="clear"></div>
        </div>
    </div>
    <div class="articles">
        <div class="author_pic">
            <a href="<%=PostDetail.Author.Link %>" title="<%=PostDetail.Author.NickName %>">
                <img alt="<%=PostDetail.Author.NickName %>" src="../resource/<%=PostDetail.Author.Avatar %>" title="<%=PostDetail.Author.NickName %>" height="40" width="40">
            </a>
        </div>
        <div class="author_text">
            <span class="spostinfo">该日志由 <%=PostDetail.Author.NickName %> 于<%=PostDetail.PubDate.ToString("yyyy年MM月dd日") %>发表在 <%=PostDetail.CategoryName %> 分类下，
								你可以<a href="#respond">发表评论</a>，并在保留<a href="<%=PostDetail.Url %>">原文地址</a>及作者的情况下引用到你的网站或博客。
				<br>
                原创文章转载请注明: <a href="<%=PostDetail.Url %>" rel="bookmark" title="本文固定链接 <%=PostDetail.Url %>"><%=PostDetail.Title %> | <%=Dict["SiteName"]%></a><br>
                关键字: <%=PostDetail.TagLink %></span>
        </div>
    </div>
    <div class="articles">
        【上一篇】<%=(PostDetail.Previous != null?PostDetail.Previous.Link:"没了") %>
        <br>
        【下一篇】<%=(PostDetail.Next != null?PostDetail.Next.Link:"没了") %>
    </div>
    <div class="articles">
        <%Include("_comment.ascx"); %>
    </div>
    <%}
      else
      { %>
    <div id="mapsite">当前位置： <a title="返回首页" href="<%=SiteInfo("SiteUrl") %>">首页</a> &gt;未知星球!</div>
    <%}
       %>
</div>
<!--正文结束-->

<!--边栏开始-->
<div id="sidebar">
</div>
<!--边栏结束-->

